/**
 * Created by dongdh on 2016/8/10.
 */

function  toScanPay(bankCode) {
    var href;
    if("GOPAYWALLET" == bankCode) {
        href = ctx + "/scan/walletPay.shtml?orderId=" + orderId + "&bankCode=" + bankCode + "&orderKey=" + orderKey;
    } else {
        href = ctx + "/scan/toPay.shtml?orderId=" + orderId + "&bankCode=" + bankCode + "&orderKey=" + orderKey;
    }

    window.location.href = href;
}


//扫码支付页面 下一步
function  scanPayNext(btnId) {
    if($("#yesAvalPay").prop("checked")) {
        //有选中的数据
        var acctId = $('#gopayAcctIdSel').val();
        if (acctId == '') {
            alert('余额支付未找到账户号！');
        }

        $('#scanPayForm #gopayAcctId').val(acctId);
        $("#"+btnId).attr("disabled","disabled");
        $('#scanPayForm').submit();
    } else {
        alert("请选择余额支付或生成二维码支付");
    }
}